Hello, int NumBlank, xBlank int NumLinked, xLink // Number of linked requirements Filter fLinks = hasLinks(linkFilterBoth, "*") set (mod, fLinks, NumLinked, xLink) print "Total No. of linked requirements: ", NumLinked "\n" // Number of Blank requirements that are linked Filter fEmpty = isEmpty(attribute NameAttr) Filter fBlank = fEmpty && fLinks set (mod, fBlank, NumBlank, xBlank) print "No. of Blank requirements: " NumBlank "\n"
SystemAdmin - Tue Jun 05 18:41:09 EDT 2012 |
Re: Manual filter to DXL filter
// Count "shall" requirements Filter fShall = contains(attribute "Object Text", "shall") set (mod, fShall, NumShall, xShall) print "No. of 'shall' Requirements: " NumShall "\n" // Count "should" requirements Filter fShould = contains(attribute "Object Text", "should") set (mod, fShould, NumShould, xShould) print "No. of 'should' Requirements: " NumShould "\n" NumReqs = NumShall + NumShould print "Total No. of Requirements: " NumReqs "\n" // Number of Blank requirements Filter fEmpty = isEmpty(attribute "Verification Status") // wild guess that doesn't work Filter fBlank = fEmpty && (fShall || fShould) set (mod, fBlank, NumBlank, xBlank) print "No. of Blank requirements: " NumBlank "\n"
|
Re: Manual filter to DXL filter SystemAdmin - Wed Jun 06 13:19:20 EDT 2012
// Count "shall" requirements Filter fShall = contains(attribute "Object Text", "shall") set (mod, fShall, NumShall, xShall) print "No. of 'shall' Requirements: " NumShall "\n" // Count "should" requirements Filter fShould = contains(attribute "Object Text", "should") set (mod, fShould, NumShould, xShould) print "No. of 'should' Requirements: " NumShould "\n" NumReqs = NumShall + NumShould print "Total No. of Requirements: " NumReqs "\n" // Number of Blank requirements Filter fEmpty = isEmpty(attribute "Verification Status") // wild guess that doesn't work Filter fBlank = fEmpty && (fShall || fShould) set (mod, fBlank, NumBlank, xBlank) print "No. of Blank requirements: " NumBlank "\n"
So I guess my only remaining question is, if it is possible to have the results spit out a text file instead of only displaying in the DXL Interaction GUI |
Re: Manual filter to DXL filter SystemAdmin - Wed Jun 06 13:53:48 EDT 2012
Use a stream and write... Stream out = write tempFileName out << output [string|char|Buffer] |